import { showNotify, showToast } from 'vant'

export default function resJudge(res){
    if (res.code == 1) {
        showToast({
            message: res.msg,
            position: 'bottom',
        });
    } else {
        showNotify({
            type: 'warning',
            message: res.msg
        })
    }
    return res.code
}